package com.lm.service.impl;

import com.lm.dao.KwChannelDao;
import com.lm.model.KwChannel;
import com.lm.service.KwChannelService;
import com.meirengu.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * KwChannel服务实现层
 *
 * @author Mao
 * @create Sat May 05 16:31:47 CST 2018
 */
@Service
public class KwChannelServiceImpl extends BaseServiceImpl<KwChannel> implements KwChannelService {

    @Autowired
    KwChannelDao kwChannelDao;

    /**
     * 通过渠道标识获取渠道信息
     *
     * @param code
     * @return
     */
    public KwChannel getByCode(String code) {
        return kwChannelDao.getByCode(code);
    }

    @Override
    public List<KwChannel> getModel(Map map) {
        return kwChannelDao.getModel(map);
    }
}
